package com.itheima.service.impl;

import com.itheima.Product;
import com.itheima.dao.ProductDao;
import com.itheima.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 斌叔
 * @description: TODO
 * @create 2022-05-14 1:13
 */
@Service
//@Repository
public class ProductServiceImpl implements ProductService {
    @Autowired
    private ProductDao productDao;


    @Override
    public Product findById(Integer pid) {
        return productDao.findById(pid).get();
    }
}
